import Vue from 'vue'
import './cube-ui'
import App from './App.vue'
import store from './store'
import interceptor from './interceptor'
import { createAPI } from 'cube-ui';

import CartAnim from '@/components/CartAnim.vue'

//createAPI 可以将某个组件用api的方式注册

//--$createCartAnim--创建实例
createAPI(Vue, CartAnim, ['transtionend'])
    //--transtionend加一个这 做清理工作，防止内存溢出
    ///拦截器
    //import VueRouter from './router'
import router from './router'
import create from '@/utils/create';
Vue.prototype.$create = create
Vue.config.productionTip = false

const app = new Vue({
    store,
    router,
    render: h => h(App)
}).$mount('#app')

interceptor(app)